package com.yugao.fintech.antelope.shop.assembly;

import com.yugao.fintech.antelope.shop.model.entity.GoodsCategory;
import com.yugao.fintech.antelope.shop.model.rqrs.goods.category.GoodsCategoryResp;
import com.yugao.fintech.antelope.shop.model.rqrs.goods.category.GoodsCategorySaveReq;
import com.yugao.fintech.antelope.shop.model.rqrs.goods.category.GoodsCategoryTreeResp;
import com.yugao.fintech.antelope.shop.model.rqrs.goods.category.GoodsCategoryUpdateReq;
import org.mapstruct.Mapper;

/**
 * 商品分类
 */
@Mapper(componentModel = "spring")
public interface GoodsCategoryAssembly {
    GoodsCategoryResp toCategoryResp(GoodsCategory source);

    GoodsCategoryTreeResp toCategoryTreeResp(GoodsCategory source);

    GoodsCategory toCategory(GoodsCategorySaveReq source);

    GoodsCategory toCategory(GoodsCategoryUpdateReq source);
}
